package cn.tedu.service.impl;

import cn.tedu.dao.UserMapper;
import cn.tedu.service.UserSerivce;
import cn.tedu.vo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <pre>
 *
 * </pre>
 *
 * @author restyhap
 * @since 2019-11-25 10:44
 */
@Component
public class UserServiceImpl implements UserSerivce {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {
        System.out.println("业务层实际调用框架里面UserMapper实例");

        return userMapper.findAll();
    }
}
